Edit Task: SetPossibilityResourceAmount
Format
SCHED / EditTask '<TaskName>' SetPossibilityResourceAmount '<PossibilityName>' '<ResourceName>' <FixedAmount> <RateAmount>
Description
The SetPossibilityResourceAmount attribute under EditTask defines the resource usage's fixed or rate amount for a single task possibility. This command does not change the rate of resource usage, only the amount (i.e., if a resource was set to be used at a rate of 10 Mb per minute, this command can only change the amount from 10 Mb to another number). If RateType is defined as FixedPlusRate, both FixedAmount and RateAmount should be provided, otherwise only one value is needed.
Parameters
Parameter | Description |
---|---|
PossibilityName | A string of text with a comma delimited list of resources in the possibility, surrounded by single quotes. Order is not required and the resource names should not be in quotes. |
ResourceName | A string of text in single quotes of the name of the resource that is being defined within the command. |
FixedAmount | A double value. This value is used in conjunction with the UsageType and RateType to determine how much change will occur to the resource capacity when assigned. Used only when RateType is Fixed or FixedPlusRate. |
RateAmount | A double value. This value is used in conjunction with the UsageType and RateType to determine how much change will occur to the resource capacity when assigned. Used only when RateType is Rate or FixedPlusRate. |
Examples
Change the resource usage amount to 20 for ResB in the possibility that uses ResA, ResB and ResC
SCHED / EditTask 'TaskA' SetPossibilityResourceAmount 'ResA,ResB,ResC' 'ResB' 20
Change the Fixed resource usage amount to 20 for ResB in the possibility that uses ResA, ResB and ResC, and change the Rate resource usage amount for this possibility to 2.
SCHED / EditTask 'TaskA' SetPossibilityResourceAmount 'ResA,ResB,ResC' 'ResB' 20 2